html {
    scroll-behavior: smooth;
}

body {
    background-color: #C3A1B4;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

/* Title and navigation section */
header {
    background-color: #DBB2BC;
    color: black;
    text-align: center;
    padding: 25px;
    font-size: 28px;
}

h1 {
    font-family: 'Playfair Display', serif;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

nav a {
    background-color: #9F8381;
    color: black;
    padding: 20px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 25px;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s;
}

nav a:hover {
    background-color: #C3A1B4;
    transform: translateY(-2px);
}

/* Main body section */
main {
    background-color: #9F8381;
    margin: 30px;
    padding: 20px;
    border-radius: 10px;
    color: black;
}
.services-list {
    line-height: 1.3;
    padding-left: 25px;
    margin: 0;
    margin-top: 0;
}

.services-list li {
    margin-bottom: 20px;
}

.content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

h2,
h3,
h4,
h5 {
    font-family: 'Playfair Display', serif;
}
h2 {
    font-size: 35px;
}

h4,
h5 {
    font-size: 50px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
}
h5 {
    margin-top: 25px;
}



.left-text,
.right-text {
    flex: 0 0 340px;
    font-size: 32px;
}

.left-text {
    text-align: center;
}

.right-text {
    text-align: left;
    line-height: 2; /* Increase spacing between lines */
}

.pic21 {
    width: 800px;
    max-width: 55%;
    height: auto;
    border-radius: 10px;
}

/* Gallery section */
.gallery-section {
    background-color: #9F8381;
    margin: 30px;
    padding: 30px;
    border-radius: 10px;
}

.gallery-title {
    text-align: center;
    font-size: 50px;
    margin-top: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.2s;
}

.gallery img:hover {
    transform: scale(1.03);
}

footer {
    background-color: #DBB2BC;
    color: black;
    text-align: left;
    padding: 25px;
    font-size: 15px;
}

.copyright {
    text-align: right;
    font-size: 12px;
}

html {
    scroll-behavior: smooth;
}

.top-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #9F8381;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.top-button:hover {
    background-color: #7d6563;
    transform: translateY(-2px);
}

/* Makes the layout work on smaller screens */
@media (max-width: 900px) {
    .content {
        flex-direction: column;
        align-items: center;
    }

    .pic21 {
        width: 100%;
        max-width: 600px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    header {
        font-size: 20px;
    }

    main,
    .gallery-section {
        margin: 15px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}
#contact {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 30px 20px;
}

.contact-info {
    text-align: left;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.footer-logo p {
    margin: 0;
}
.footer-payment {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    align-self: center;
}

.footer-payment p {
    margin: 0 0 20px 0;
    font-weight: bold;
    font-size: 16px;
}

    .top-button {
        margin-top: 12px;
        padding: 10px 18px;
    }
}

/* ==============================
   Mobile formatting improvements
   Keeps the desktop layout/styles the same
   ============================== */

@media (max-width: 900px) {
    .content {
        width: 100%;
        box-sizing: border-box;
    }

    .left-text,
    .right-text {
        flex: 1 1 auto;
        width: 100%;
        max-width: 700px;
        box-sizing: border-box;
    }

    #contact {
        align-items: center;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    body {
        overflow-x: hidden;
    }

    header {
        padding: 20px 12px;
    }

    h1 {
        font-size: 34px;
        line-height: 1.15;
        margin: 10px 0;
    }

    nav {
        gap: 10px;
        margin-top: 15px;
    }

    nav a {
        padding: 12px 16px;
        font-size: 17px;
        border-radius: 10px;
    }

    main {
        margin: 12px;
        padding: 18px 14px;
    }

    .content {
        gap: 20px;
    }

    .left-text,
    .right-text {
        width: 100%;
        max-width: 100%;
        flex: none;
        font-size: 19px;
        line-height: 1.55;
    }

    .right-text {
        line-height: 1.5;
    }

    h4,
    h5 {
        font-size: 36px;
        margin-top: 15px;
        margin-bottom: 12px;
    }

    .services-list {
        padding-left: 22px;
    }

    .services-list li {
        margin-bottom: 12px;
    }

    .pic21 {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .gallery-section {
        margin: 12px;
        padding: 18px 14px;
    }

    .gallery-title {
        font-size: 38px;
    }

    .gallery {
        gap: 12px;
    }

    .gallery img {
        height: auto;
        max-height: none;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    #contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        padding: 25px 15px;
    }

    .contact-info {
        text-align: center;
        width: 100%;
    }

    .contact-info p {
        overflow-wrap: anywhere;
    }

    .footer-logo {
        width: 100%;
    }

    .footer-logo img {
        width: 350px;
        max-width: 70%;
    }

@media (max-width: 380px) {
    h1 {
        font-size: 29px;
    }

    nav a {
        padding: 10px 12px;
        font-size: 15px;
    }

    .left-text,
    .right-text {
        font-size: 17px;
    }

    h4,
    h5,
    .gallery-title {
        font-size: 32px;
    }
}
